package com.sky.article;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/*
@description:
@ClassName ArticleConfig
@author chen
@create 2024-09-11 23:26
@Version 1.0
*/
@Configuration
public class ArticleConfig {

    @Bean
    public IArticlePublishCheck articlePublishCheck(){
        ContentLengthCheck first = new ContentLengthCheck();
        first.next(new ImgCheck())
                .next(new SensitiveWordsCheck());
        return first;
    }
}
